package com.fh.shop.api.common;

import java.util.List;

/**
 * @author: 刘硕
 * @date: 2022/5/7 17:19
 * @project: ssm-01
 * @company: 郑州飞狐
 * @e-mail: 979904118@qq.com
 * 类备注:
 * 修改备注:
 */
public class DataTableResult {
    // 和DataTablePageBean中的draw的值保持一致即可
    private int draw;

    // 过滤后的总条数
    private long recordsFiltered;

    // 总条数
    private long recordsTotal;

    // 用于存放查询到当前页数据的集合
    private List data;


    public DataTableResult() {
    }

    public DataTableResult(int draw, long recordsFiltered, long recordsTotal, List data) {
        this.draw = draw;
        this.recordsFiltered = recordsFiltered;
        this.recordsTotal = recordsTotal;
        this.data = data;
    }

    public int getDraw() {
        return draw;
    }

    public void setDraw(int draw) {
        this.draw = draw;
    }

    public long getRecordsFiltered() {
        return recordsFiltered;
    }

    public void setRecordsFiltered(long recordsFiltered) {
        this.recordsFiltered = recordsFiltered;
    }

    public long getRecordsTotal() {
        return recordsTotal;
    }

    public void setRecordsTotal(long recordsTotal) {
        this.recordsTotal = recordsTotal;
    }

    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }
}
